﻿namespace LuckyShell.ShellOrders;

public class BlockOrder(IEnumerable<ShellTree> list) : ShellOrder
{
    private List<ShellOrder> List { get; set; } = list.OfType<ShellOrder>().ToList();

    public void Run(ref VariateManager manager)
    {
        //List.ForEach(x => x.Run(ref manager));
        foreach (var order in List) order.Run(ref manager);
    }
}